-- GENERATED SPELL FOR [Severed Spirit] --


function spell0_19881(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_19881', 8320, 1)
end

function spell1_19881(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19881', 7000, 1)
end

function Sorts_19881(pUnit, Event)
local choix_sorts_19881 = math.random(0, 1)
if choix_sorts_19881 == 0 then
pUnit:RegisterEvent('spell0_19881', 1, 1)
end
if choix_sorts_19881 == 1 then
pUnit:RegisterEvent('spell1_19881', 1, 1)
end
end

function mob19881_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19881', math.random(1500, 3000), 1)
end

function mob19881_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19881_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19881_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19881, 1, 'mob19881_Action')
RegisterUnitEvent(19881, 2, 'mob19881_Leave')
RegisterUnitEvent(19881, 3, 'mob19881_Kill')
RegisterUnitEvent(19881, 4, 'mob19881_Die')
